package com.openingedu.mba.service.task;

public abstract class TaskInvoker implements Runnable {

	private TaskInvokeCallback mExecutionCallback;
	
	public TaskInvoker(TaskCallback callback) {
		
	}

	@Override
	public void run() {
		executeTask();
	}

	public abstract void executeTask();
	public abstract void setThreadId(int threadId);

	public TaskInvokeCallback getExecutionCallback() {
		return mExecutionCallback;
	}

	public void setExecutionCallback(TaskInvokeCallback mExecutionCallback) {
		this.mExecutionCallback = mExecutionCallback;
	}
	
}
